﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:MaxZhang_EasyEntities_EasyDesigner_Core="clr-namespace:MaxZhang.EasyEntities.EasyDesigner.Core" x:Class="MaxZhang.EasyEntities.EasyDesigner.UserControls.TableSchemaList" 
             mc:Ignorable="d" 
             d:DesignHeight="400" d:DesignWidth="640" Loaded="UserControl_Loaded">
	<UserControl.Resources>
	
	</UserControl.Resources>
    <Grid Background="#FF2F2F3A"  >
        <Grid.RowDefinitions>
            <RowDefinition Height="65" />
            <RowDefinition Height="304*" />
            <RowDefinition Height="31" />
        </Grid.RowDefinitions>
        <Label Content="{Binding Memo,Mode=TwoWay}" Height="43" Foreground="White" HorizontalAlignment="Left" Margin="15,12,0,10"  x:Name="label1" VerticalAlignment="Center" Width="613" FontSize="28" />
        <TextBox x:Name="tb1" Visibility="Collapsed" Text="{Binding Memo,Mode=TwoWay}" Width="613" Height="43" FontSize="28" HorizontalAlignment="Left" Margin="15,12,0,10"  VerticalAlignment="Center"/>
        <DataGrid   AutoGenerateColumns="False" Grid.Row="1"  Margin="10,10,10,10" Name="dataGrid1" DataContext="{Binding}" ItemsSource="{Binding Propertys,Mode=TwoWay}" FontSize="14" FontFamily="Microsoft YaHei" BorderBrush="#FF544D4D" CanUserReorderColumns="False" HorizontalGridLinesBrush="#FFE8E5E5" Foreground="#FF21212B" VerticalGridLinesBrush="#FFEFE5E5" CanUserAddRows="False" CanUserDeleteRows="False" CanUserResizeRows="False" CanUserSortColumns="False">
            <DataGrid.Columns>
                
                <DataGridTextColumn  Header="列名" Binding="{Binding Name}"/>
                <DataGridCheckBoxColumn Header="主键" Binding="{Binding IsPrimaryKey,Mode=TwoWay}"/>
                <DataGridCheckBoxColumn Header="自增列" Binding="{Binding IsIdentity,Mode=TwoWay}"/>
                <DataGridCheckBoxColumn Header="可空" Binding="{Binding IsNull,Mode=TwoWay}"/>
                <DataGridTextColumn Header="说明" Binding="{Binding Memo,Mode=TwoWay}" MinWidth="350" Width="550" />
            </DataGrid.Columns>
        </DataGrid>
        <Button  Content="生成" Grid.Row="2" Height="23" Margin="0,0,25,0" HorizontalAlignment="Right"  x:Name="button1" VerticalAlignment="Center" Width="75" Click="button1_Click" />
      
    </Grid>
</UserControl>
